﻿using System.Diagnostics;
using NHibernate;

namespace easyccms.Nhibernate.Infrastructure
{
    public class SqlStatementInterceptor : EmptyInterceptor
    {
        /// <summary>
        /// Called when [prepare statement].
        /// </summary>
        /// <param name="sql">The SQL.</param>
        /// <returns>Returns</returns>
        public override NHibernate.SqlCommand.SqlString OnPrepareStatement(NHibernate.SqlCommand.SqlString sql)
        {
            Trace.WriteLine(sql.ToString());
            return sql;
        }

    }
}
